// 统计业务API
import {postAxios,getAxios} from '@/lib/http';

export const statApi = {
    // 统计KPI
    queryKpiList: (data) => {
      return postAxios('/stat/kpi', data);
    },

    // 查询拆解及不良数趋势图
    queryDisassembleAndEligible: (data) => {
      return postAxios('/stat/disassembleAndEligible', data);
    },

    // 电芯型号占比统计
    countByElectricCoreType: (data) => {
      return postAxios('/stat/countByElectricCoreType', data);
    },

    // 电芯缺陷Top5统计
    countTop5DefectType: (data) => {
      return postAxios('/stat/countTop5DefectType', data);
    },

    // 电芯缺陷分类统计
    countElectricCoreByDefectType: (data) => {
      return postAxios('/stat/countElectricCoreByDefectType', data);
    }
};
  